# Maintainer: Pedro Filipe <xpecex@outlook.com>

pkgname=py3-fastimport
pkgver=0.9.8
_pkgver=$pkgver-5
pkgrel=0
pkgdesc="VCS fastimport/fastexport parser"
arch="noarch"
url="https://github.com/jelmer/python-fastimport"
license="GPL-2.0-only"
makedepends="git py3-setuptools"
source="https://github.com/jelmer/python-fastimport/archive/debian/$_pkgver.tar.gz"
builddir="$srcdir/python-fastimport-debian-$_pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest fastimport.tests.test_suite
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/fastimport/tests
}

sha512sums="06b205d00e93fa452c4c5653244c7ce719901d69191dd183b7e20cb877898829ab41937f8f8b63f284e69f4f7c92bcede11f4adab7f91a3b537d83716ad4e4fc  0.9.8-5.tar.gz"
